﻿package cn.rayyee.events 
{
	import flash.events.Event;
	
	/**
	 * ...全局事件
	 * @author rayYee
	 */
	public class GlobalEvent extends Event 
	{
		// 参数
		private var _param:Object = null;
		
		public function GlobalEvent(type:String, param:Object = null , bubbles:Boolean=false, cancelable:Boolean=false) 
		{ 
			_param = param;
			super(type, bubbles, cancelable);
			
		} 
		
		public override function clone():Event 
		{ 
			return new GlobalEvent(type, param ,  bubbles, cancelable);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("GlobalEvent",  "param" ,"type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		/**
		 * 参数
		 */
		public function get param():Object { return _param; }
		
	}
	
}